<?php
$this->Html->css('controllers/Passports/index.css?1', array('block' => 'stylesTop'));
$this->Html->script('controllers/Passports/index.js?1', array('block' => 'scriptBottom'));
?>
<?php echo $this->Session->flash(); ?>

    <div class="searchEmp">
        <form action="<?php echo $this->Html->url(array('action' => 'passports')); ?>" method="GET">
            <p>
                <label for="categories"><?php echo __('MOE'); ?>:</label><input id="moes" name="moe"
                                                                                style="width: 270px" required/>
            </p>

            <p>
                <label for="products"><?php echo __('Área'); ?>:</label><input id="areas" name="area"
                                                                               disabled="disabled" style="width: 270px"
                                                                               required/>
            </p>

            <p>
                <label for="orders"><?php echo __('Línea'); ?>:</label><input id="lineas" name="linea"
                                                                              disabled="disabled" style="width: 270px"
                                                                              required/>
            </p>
            <label for="employees"> <?php echo __('Numero de nomina'); ?> </label>
            <input type="text" class="form-control" id="employees" name="payrolls"
                   placeholder="Ejemplo: 91919191 90909090" required/>
            <input type="submit" id="btnImprimir" class="btn btn-primary" value="<?php echo __("Buscar"); ?>"/>
        </form>
    </div>
    <div id="resultsPassports" class="col-lg-12"></div>
<?php $this->start('jsVars'); ?>
    <script type="text/javascript">
        var appBosch = <?php echo json_encode($appBosch); ?>;
        var urlPassport = '<?php echo $this->Html->url(array('action' => 'passports')); ?>';
        var urlMoes = '<?php echo $this->Html->url(array('controller' => 'Moes', 'action' => 'read')); ?>';
        var urlAreas = '<?php echo $this->Html->url(array('controller' => 'Areas', 'action' => 'getAreasByMoe', '1')); ?>';
        var urlLines = '<?php echo $this->Html->url(array('controller' => 'Lines', 'action' => 'getLinesByArea', '1')); ?>';
        var urlPdf = '<?php echo $this->Html->url(array('action' => 'printPdf')); ?>'
    </script>
<?php $this->end();